<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01-vue使用步骤</title>

</head>
<body>
    <div id="app">
        <!--祛除首位空格 string变为number 延迟加载-->
        姓名:<input type="text" v-model.trim="name"><br>
        年纪:<input type="text" v-model.number="age"><br>
        手机号码:<input type="text" v-model.lazy="phone"><br>
    </div>
    <script src="js/vue.js"></script>
    <script>
         let app = new Vue({
             el: '#app',
             data:{
                 name:'',
                 age:'',
                 phone:''
             }
         })
    </script>

</body>
</html>